package com.xnyzc.lhy.mis.feign.didi;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.feign.fallback.didi.DriverAssignedServiceFallback;
import com.xnyzc.lhy.order.entity.param.synchronization.StatusCallbackParam;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "${feign.applicationName.didi}", fallback = DriverAssignedServiceFallback.class)
public interface DriverAssignedService {
    /**
     * 调取滴滴司机状态同步
     *
     * @param statusCallbackParam 价格信息
     */
    @PostMapping("oa/order/status/statusSync")
    Rv statusCallback(@ApiParam(name = "statusCallbackParam", value = "司机状态信息") @RequestBody StatusCallbackParam statusCallbackParam);

}
